#include <cstdio>
#include <algorithm>
using namespace std;
int main(void){
    printf("n e\n- -----------\n");
    int fac[10]={1,1,2,6,24,120,720,5040,40320,362880};
    for(int i=0;i<=9;i++){
        double ans=0;
        for(int j=0;j<=i;j++){
            ans+=1.0/fac[j];
        }
        if(i<2){
            printf("%d %.0lf\n",i,ans);
        }
        else if(i==2){
            printf("%d %.1lf\n",i,ans);
        }
        else{
            printf("%d %.9lf\n",i,ans);
        }
    }
    return 0;
}